revise Unix `PATH` setting
authorKevin Albertson <kevin.albertson@10gen.com>
Tue, 20 May 2025 00:04:29 +0000 (20:04 -0400)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 00:04:29 +0000 (20:04 -0400)
Remove unneeded export.
Prefix `PATH` to avoid referring unintentional binaries.

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
.github/workflows/cmake.yml

index db6262e84bc29862c941942d045e91d3851b0435..52f3b808d8c8e1573c110c26fbcaa9739fe249f3 100644 (file)
@@ -82,5 +82,5 @@ jobs:
         cmake --install build --prefix tmp/install
         cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install -G'MSYS Makefiles'
         cmake --build test/app/build
-        export PATH="$PATH:$(pwd)/tmp/install/bin"
+        PATH="$(pwd)/tmp/install/bin:$PATH"
         test/app/build/app.exe